using System;
using System.Collections.Generic;

namespace Data.Models
{
    public partial class Order
    {
        public Order()
        {
            this.BillOuts = new List<BillOut>();
            this.LabourDetails = new List<LabourDetail>();
            this.MaterialDetails = new List<MaterialDetail>();
            this.OrderProcesses = new List<OrderProcess>();
            this.OrderSummaries = new List<OrderSummary>();
            this.OtherCostDetails = new List<OtherCostDetail>();
            this.ToolDetails = new List<ToolDetail>();
        }

        public int ID { get; set; }
        public string Code { get; set; }
        public Nullable<int> User1ID { get; set; }
        public Nullable<int> User2ID { get; set; }
        public Nullable<System.DateTime> Date1 { get; set; }
        public Nullable<System.DateTime> Date2 { get; set; }
        public Nullable<System.DateTime> StartDate { get; set; }
        public Nullable<System.DateTime> EndDate { get; set; }
        public Nullable<int> ProductModelID { get; set; }
        public Nullable<int> Quantity { get; set; }
        public string Note { get; set; }
        public Nullable<int> Status { get; set; }
        public Nullable<int> TotalCost { get; set; }
        public virtual ICollection<BillOut> BillOuts { get; set; }
        public virtual Employee Employee { get; set; }
        public virtual Employee Employee1 { get; set; }
        public virtual ICollection<LabourDetail> LabourDetails { get; set; }
        public virtual ICollection<MaterialDetail> MaterialDetails { get; set; }
        public virtual ICollection<OrderProcess> OrderProcesses { get; set; }
        public virtual ProductModel ProductModel { get; set; }
        public virtual ICollection<OrderSummary> OrderSummaries { get; set; }
        public virtual ICollection<OtherCostDetail> OtherCostDetails { get; set; }
        public virtual ICollection<ToolDetail> ToolDetails { get; set; }
    }
}
